<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>css盒子模型</title>

		<style type="text/css">
			body {
				margin: 0px;
			}
			h1{
				margin:5px 30px 5px 10px;
				border: -1px solid;
			}
			p{
				margin: 5px 10px 5px;
				border: 1px solid;
				padding-top: -10px;
			}
		</style>

	</head>

	<body>
		<h1>这是一行内容</h1>
		<p>这又是一行内容</p>
	</body>

</html>